
from typing import Any
import httpx
from mcp.server.fastmcp import FastMCP

# 初始化FastMCP服务器
mcp = FastMCP(name="weather")

# 常量
NWS_API_BASE = "https://api.weather.gov"
USER_AGENT = "weather-app/1.0"

@mcp.tool()
async def get_alerts(state: str) -> str:
    return "alerts"
@mcp.tool()
async def get_forecast(state: str) -> str:
    return "forecast"


if __name__ == "__main__":
    mcp.run(transport='stdio')